package com.fingard.dsp.bank.reqrespobj.qryfinancerecinfo;

import com.fingard.dsp.bank.reqrespobj.ReqRespHeader;
import com.fingard.dsp.bank.reqrespobj.RetAtsBase;
import com.fingard.xml.XmlTextWriter;

/**
 * @author marlon
 * @date 2019/1/8
 */
public class RetAtsFinanceRecInfo extends RetAtsBase {

    public RetAtsFinanceRecInfo(ReqRespHeader p_header) {
        retHeader = p_header;
        retXmlWriter = new XmlTextWriter();
    }

    public void writeRetDetail(RetAtsFinanceRecInfoDetail p_retDetail) throws Exception {

        retXmlWriter.writeStartElement("DetailRecord");
        retXmlWriter.writeElementString("DealerCode", p_retDetail.DealerCode);
        retXmlWriter.writeElementString("VIN", p_retDetail.VIN);
        retXmlWriter.writeElementString("RepaymentDate", p_retDetail.RepaymentDate);
        retXmlWriter.writeElementString("RepaymentMoney", p_retDetail.RepaymentMoney);
        retXmlWriter.writeElementString("CarMortgageTime", p_retDetail.CarMortgageTime);
        retXmlWriter.writeElementString("Reserve1", p_retDetail.Reserve1);
        retXmlWriter.writeElementString("Reserve2", p_retDetail.Reserve2);
        retXmlWriter.writeElementString("Reserve3", p_retDetail.Reserve3);
        retXmlWriter.writeElementString("Reserve4", p_retDetail.Reserve4);
        retXmlWriter.writeElementString("Reserve5", p_retDetail.Reserve5);
        retXmlWriter.writeEndElement();
    }

}
